package mianshitimu;

import java.util.Arrays;

/**
 * @ClassName maxnum_arr
 * @Author lupeibei
 * @create 2022/6/22 9:22 AM
 */
public class maxnum_arr {
    //找到[2,3,4,7,1,3]数组中最大的数
    public  void num(int [] s) {
        Arrays.sort(s);
            int max=s[s.length+1];
        System.out.println(max);

       }


    public static void main(String[] args) {
        maxnum_arr maxnum1=new maxnum_arr();
        int [] s={2,3,4,7,1,3};
        maxnum1.num(s);




    }
}
